package cn.buaa.anniversary.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.io.File;

/**
 * Created this one by HMH on 2017/10/24.
 */
@Service
public class PathService {

    @Value("${buaa.pic.urlRoot}")
    String urlRoot;

    public String convertImgResultToHttpUrl(File file) {
        return urlRoot + "/" + file.getName();
    }

}
